import 'package:bilibili_flutter/config/config.dart';
import 'package:flutter/material.dart';

class HomeAppBarWidget extends StatefulWidget {
  const HomeAppBarWidget({Key key, String title});

  _HomeAppBarWidgetState createState() => _HomeAppBarWidgetState();
}

class _HomeAppBarWidgetState extends State<HomeAppBarWidget> {
  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(left: 2.0),
      child: Row(
        children: <Widget>[
          ClipOval(
            child: Image.network(
                'https://randomuser.me/api/portraits/women/3.jpg',
                width: 30.0,
                height: 30.0),
          ),
          Container(
            alignment: Alignment.centerLeft,
            margin: EdgeInsets.fromLTRB(8.0, 15, 0, 15),
            padding: EdgeInsets.only(left: 5.0),
            width: 150.0,
            child: Icon(Icons.search),
            decoration: BoxDecoration(
              color: Color(ColorS.APP_BAR_SEARCH_COLOR),
              borderRadius: BorderRadius.circular(30.0),
            ),
          ),
          Container(
            margin: EdgeInsets.only(left: 5),
            width: 100.0,
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Icon(Icons.mail),
                Icon(Icons.games),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
